<template>
    <div class="answerItemList">
        <div class="item">
            <i :class="type[item.result]"></i>

            <div class="title space">{{ item.title }}</div>
            <div class="bottom">
                <div style="text-align: left;width: 48%;">
                    <el-rate
                        v-model="item.level"
                        disabled
                        >
                    </el-rate>
                </div>
                <div class="time">{{ dayjs(item.createTime).format('YYYY-MM-DD HH:mm') }}</div>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        props : ['list'],
        data() {
            return {
                type : ['el-icon-error error', 'el-icon-success success','el-icon-info expire']
            }
        },
        methods : {

        }
    }
</script>

<style lang="scss" scoped>
.answerItemList{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    .item{
        position: relative;
        height: 100px;
        width: 400px;
        padding: 20px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04);
        margin: 5px;
        border-radius: 10px;
        .title{
            font-weight: 900;
        }
        .bottom{
            padding-top: 15px;
            display: flex;
            &>div{
                width:50%;
                text-align: right;
            }
            .time{
                text-align: right;
                font-size: 12px;
            }
        }
        i{
            position: absolute;
            right: 20px;
            top: 10px;
            font-size: 30px;
        }
        .error{
            color: #F56C6C;
        }
        .success{
            color: #67C23A;
        }
        .expire{
            color: #909399;
        }
    }
}
</style>